<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>Researchers List</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="cache-control" content="no-cache">
  </head>
  
  <body>
    <stripes:link href="/Researcher.action" event="edit" target="main">New Researcher</stripes:link>
                  
    <br />
    <table id="MessageTable">
      <tr><td><font color="orange">${actionBean.message}</font></td></tr>
    </table>
    <br />
  
    Researchers:<br /><br />
    <table id="researchersList" class="plainTable">
    <tr><td class="tableTitle">Name</td><td class="tableTitle">Organization</td><td class="tableTitle">Bio-Statement</td></tr>
      <c:forEach var="researcher" items="${actionBean.researchersIterator}">
        <tr>
        <td>
          <stripes:link href="/Researcher.action" event="view" target="main">
            <stripes:param name="name" value="${researcher.name}"/>${researcher.name}
          </stripes:link>
        </td>
        <td>
          <stripes:link href="/Organization.action" event="view" target="main">
            <stripes:param name="name" value="${researcher.organization}"/>${researcher.organization}
          </stripes:link></td>
        <td>${researcher.bioStatement}</td>
        </tr>
      </c:forEach>
    </table>
    
  </body>
</html>


